package com.pg.agent.engine.client.component;

import com.pg.agent.engine.client.model.agent.AIAgent;

/**
 * 案例组件
 *
 * @author huhuaping
 * @date 2023/11/2 11:13
 */
public class DemonstrationsComponent extends PromptComponent {
    private String demonstration;

    public DemonstrationsComponent(String demonstration) {
        super();
        this.demonstration = demonstration;
    }

    @Override
    public String getPrompt(AIAgent agent) {
        return String.format("Here are demonstrations you can refer to:\\n%1$s\"", demonstration);
    }
}
